<?php

/**
 * @version $Id$
 * @package hh-bill
 * @author Alexander Anokhin <ava@vaz.ru>
 */

class Documents extends Zend_Db_Table {
	protected $_name = 'docum';
	protected $_primary = 'doc_id';
	protected $_sequence = 'docum@doc_id';
	protected $_rowsetClass = 'Document_Factory';
	protected $_dependentTables = array('Requisites','ReqValues','PersonDocs');

	protected $_referenceMap = array(
        'Type' => array(
            'columns'           => 'type',
            'refTableClass'     => 'DocumentTypes',
            'refColumns'        => 'type'
            )
             
          );



   public function init()
   {
   		if($this->getAdapter() instanceof Zend_Db_Adapter_Pdo_Sqlite)
	   		$this->_sequence = true;
   }
}

